package com.atguigu.yygh.orders.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 *
 * @author atguigu
 * @since 2022-11-04
 */
public interface OrderInfoService extends IService<OrderInfo> {

    long generateOrder(String scheduleId, Long patientId);

    OrderInfo getOrderById(Long orderId);

    boolean cancelOrder(Long orderId);

    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
